package cn.zf233.xcloud.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

/**
 * Created by zf233 on 2020/11/27
 */
public class FileVo implements Serializable {

    private static final long serialVersionUID = -6414777863657077693L;
    private Long id;
    private String logoUrl;
    private Long parentId;
    private Integer folder;
    private String fileName;
    private String highLightFileName;
    private String fileSize;
    private String uploadTime;

    @JsonIgnore
    public boolean isAFolder() {
        return folder == 1;
    }

    public FileVo() {
    }

    public FileVo(Long id, String logoUrl, Long parentId, Integer folder, String fileName, String highLightFileName, String fileSize, String uploadTime) {
        this.id = id;
        this.logoUrl = logoUrl;
        this.parentId = parentId;
        this.folder = folder;
        this.fileName = fileName;
        this.highLightFileName = highLightFileName;
        this.fileSize = fileSize;
        this.uploadTime = uploadTime;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getFolder() {
        return folder;
    }

    public void setFolder(Integer folder) {
        this.folder = folder;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getHighLightFileName() {
        return highLightFileName;
    }

    public void setHighLightFileName(String highLightFileName) {
        this.highLightFileName = highLightFileName;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(String uploadTime) {
        this.uploadTime = uploadTime;
    }

    @Override
    public String toString() {
        return "FileVo{" +
                "id=" + id +
                ", logoUrl='" + logoUrl + '\'' +
                ", parentId=" + parentId +
                ", folder=" + folder +
                ", fileName='" + fileName + '\'' +
                ", highLightFileName='" + highLightFileName + '\'' +
                ", fileSize='" + fileSize + '\'' +
                ", uploadTime='" + uploadTime + '\'' +
                '}';
    }
}

